package com.hsd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsd.mapper.DeviceMapper;
import com.hsd.model.Device;
import com.hsd.service.DeviceService;

@Service
public class DeviceServiceImpl implements DeviceService {
    
    @Autowired
    private DeviceMapper deviceMapper;
    @Override
    public List<Device> getAllDevice(int start, int end) {
        // TODO Auto-generated method stub
        return deviceMapper.getAllDevice(start,end);
    }
    @Override
    public int getCount() {
        // TODO Auto-generated method stub
        return deviceMapper.getCount();
    }
    @Override
    public void updateDeviceByImei(Device device) {
        // TODO Auto-generated method stub
         deviceMapper.updateDeviceByImei(device);
    }
    @Override
    public void addDevice(Device device) {
        // TODO Auto-generated method stub
        deviceMapper.addDevice(device);
    }
    @Override
    public List<Device> searchDeviceByImei(int start, int end, String imei) {
        // TODO Auto-generated method stub
        return deviceMapper.searchDeviceByImei(start,end,imei);
    }
    @Override
    public int getCountByImei() {
        // TODO Auto-generated method stub
        return deviceMapper.getCountByImei();
    }


    }

